package org.eclipse.uml2.diagram.statemachine.part;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.uml2.diagram.common.genapi.IVisualIDRegistryExt.MenuTypeHint;
/**
* @generated
*/
public class VisualIDRegistryExtension {
/**
* @generated
*/
public List<MenuTypeHint> getMenuTypeHints(String type) {
int visualId = 0;
try {
visualId = Integer.parseInt(type);
} catch (NumberFormatException e) {
return Collections.emptyList();
}
switch (visualId) {
default:
List<MenuTypeHint> hints = new LinkedList<MenuTypeHint>();
hints.add(new MenuTypeHint("", type));
return hints;
}
}
/**
* @generated
*/
private final List<String> myHintedTypes;
/**
* @generated
*/
{
List<String> hintedTypes = new LinkedList<String>();
myHintedTypes = Collections.unmodifiableList(hintedTypes);
}
/**
* @generated
*/
public List<String> getAllHintedTypes() {
return myHintedTypes;
}
/**
* @generated
*/
public String getSemanticHint(View childView, View newParentView) {
return null;
}
}